package com.atlansheng.rocketmqdemoboot.demos.controller;

import com.atlansheng.rocketmqdemoboot.demos.producer.ProducerSend2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: MsgController02
 * @Description:
 * @Date 2024/05/09 10:03
 * @Author songshaoqiu
 **/
@RestController
public class MsgController02 {


    @Autowired
    ProducerSend2 producerSend;

    @GetMapping("/again/send")
    public String send(@RequestParam("id")Long id,
                       @RequestParam("name")String name){
        producerSend.sendDelay(id,name);
        return "hello";
    }

}
